@extends('admin.layout.layout')
@section('title','轮播添加')
@section('content')
	<div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">轮播添加</h1>
            </div>
            <!-- /.col-lg-12 -->
        	<div class="col-lg-8 col-lg-offset-2">
		     		@if (count($errors) > 0)
		    <div class="alert alert-danger">
		        <ul>
		            @foreach ($errors->all() as $error)
		                <li>{{ $error }}</li>
		            @endforeach
		        </ul>
		    </div>
					@endif
			</div> 
		     <div class="col-lg-8 col-lg-offset-2">
		     
			</div>
	        <div class="col-lg-8 col-lg-offset-2">
	            <div class="panel panel-default">
	              	<div class="panel-body">
	                    <div class="row">
	                        <div class="col-lg-12">
	                            <form  method="post" action="{{url('/admin/lunbo/insert')}}" enctype="multipart/form-data">
	                               
	                                <div class="form-group">
	                                    <label>轮播名</label>
	                                    <input class="form-control" value="{{old('aname')}}" name="aname">
	                                </div>
	                                <div class="form-group">
	                                    <label>链接地址</label>
	                                    <input class="form-control" value="{{old('aadds')}}" name="aadds">
	                                </div>
									<div class="form-group">
	                                    <label>图片上传</label>
	                                    <input type="file" name="apic">
	                                </div>
	                               	{{ csrf_field() }}
	                               	<button type="submit" class="btn btn-primary">添加</button>
	                                <button type="reset" class="btn btn-danger">重置</button>

	                            </form>
	                        </div>
	                        <!-- /.col-lg-6 (nested) -->
	     
	                    </div>
	                    <!-- /.row (nested) -->
	                </div>
	                <!-- /.panel-body -->
	            </div>
	            <!-- /.panel -->
	        </div>
	        <!-- /.col-lg-12 -->
	    </div>
		    
		</div>
       </div>
       
        <!-- /.row -->
    </div>
@endsection